package com.boliq.lol.ui;

import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.Menu;
import android.widget.ImageView;

import com.boliq.demo.R;
import com.boliq.lol.base.BaseActivity;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.navigation.NavigationView;

import androidx.navigation.NavController;
import androidx.navigation.Navigation;
import androidx.navigation.ui.AppBarConfiguration;
import androidx.navigation.ui.NavigationUI;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

public class LolMainActivity extends BaseActivity {

private DrawerLayout rootView;
    @Override
    protected int contentView() {
        return R.layout.activity_lol_main;
    }

    @Override
    protected void initView() {
        rootView = findViewById(R.id.drawer_layout);
        //找到左边的头像布局
        ImageView view = findViewById(R.id.img_user_head);
        //然后给头像设置一个新的图片
        view.setImageResource(R.drawable.icon_head_2);


         findViewById(R.id.img_open).setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View view) {
                 rootView.openDrawer(Gravity.START);
             }
         });
    }

    @Override
    protected void bindData() {

    }

    @Override
    protected void bindEvent() {

    }
}